package ltu.m7011e.client;

import java.util.Collection;

import ltu.m7011e.shared.model.Link;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface GreetingServiceAsync {
	void greetServer(String input, AsyncCallback<String> callback)
			throws IllegalArgumentException;
	
	void postLink(Link newLink, AsyncCallback<String> callback)
			throws IllegalArgumentException;
	
	void getNewestLinks(AsyncCallback<Collection<Link>> callback)
			throws IllegalArgumentException;
	
	void sendLikeToServer(Integer linkId, AsyncCallback<String> callback)
			throws IllegalArgumentException;
}
